// 身份管理
import request from '@/router/axios'

//展示表格
export function timeSlotObj(query) {
    return request({
        url: '/campus/timesection/page',
        method: 'get',
        params:query
    })
}

//添加
export function AddTimeslotObj(obj) {
    return request({
        url: '/campus/timesection',
        method: 'post',
        data: obj
    })
}

//修改
export function EditTimeslotObj(obj) {
    return request({
        url: '/campus/timesection',
        method: 'put',
        data: obj
    })
}

//删除
export function DelTimeSlotObj(id) {
    return request({
        url: '/campus/timesection/' + id,
        method: 'delete'
    })
}

// 编辑前分页
export function beforeEditObj(id) {
    return request({
        url: '/campus/timesection/' + id,
        method: 'get',
        params: id
    })
}



